package com.zscat.mallplus.center.entity;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zscat.mallplus.sys.entity.AdminSysNotice;

import cn.afterturn.easypoi.excel.annotation.Excel;

/**
 * 个人中心用户系统信息关联表对象 center_user_sys_notice
 * 
 * @author Wsen
 * @date 2020-09-21
 */
public class CenterUserSysNotice implements Serializable {
	private static final long serialVersionUID = 1L;

	/** id */
	private Long id;

	/** 公告ID */
	@Excel(name = "公告ID")
	private Long noticeId;

	/** 用户id */
	@Excel(name = "用户id")
	private Long userId;

	/** 是否已读[0:否;1:是] */
	@Excel(name = "是否已读[0:否;1:是]")
	private Integer isRead;

	/** storeId */
	@Excel(name = "storeId")
	private Long storeId;

	/** createTime */
	@Excel(name = "createTime")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date createTime;

	/**
	 * 以下字段不存数据库
	 */
	private AdminSysNotice adminSysNotice;

	private CenterJifen centerJifen;

	private CenterLevel centerLevel;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setNoticeId(Long noticeId) {
		this.noticeId = noticeId;
	}

	public Long getNoticeId() {
		return noticeId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setIsRead(Integer isRead) {
		this.isRead = isRead;
	}

	public Integer getIsRead() {
		return isRead;
	}

	public void setStoreId(Long storeId) {
		this.storeId = storeId;
	}

	public Long getStoreId() {
		return storeId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public AdminSysNotice getAdminSysNotice() {
		return adminSysNotice;
	}

	public void setAdminSysNotice(AdminSysNotice adminSysNotice) {
		this.adminSysNotice = adminSysNotice;
	}

	public CenterJifen getCenterJifen() {
		return centerJifen;
	}

	public void setCenterJifen(CenterJifen centerJifen) {
		this.centerJifen = centerJifen;
	}

	public CenterLevel getCenterLevel() {
		return centerLevel;
	}

	public void setCenterLevel(CenterLevel centerLevel) {
		this.centerLevel = centerLevel;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId())
				.append("noticeId", getNoticeId()).append("userId", getUserId()).append("isRead", getIsRead())
				.append("createTime", getCreateTime()).append("storeId", getStoreId()).toString();
	}
}
